
import {request} from '../../request/index.js'
Page({
  data: {
    swiperlist:[],
    navlist:[],
    foollist:[]
  },
  onLoad() {

    this.getswiperlist();
    this.getnavlist();
    this.getfoollist();
  },
  getswiperlist() {
    request({url:'/home/swiperdata'})
    .then(result=>{
      // console.log(result)
          this.setData({
            swiperlist:result
          })
    })
  },
  getnavlist() {
    request({url:'/home/catitems'})
    .then(result=>{
      // console.log(result)
          this.setData({
            navlist:result
          })
    })
  },
  getfoollist() {
    request({url:'/home/floordata'})
    .then(result=>{
      console.log(result)
          this.setData({
            foollist:result
          })
    })
  },
})
